<?php

class Validator_Abstract
{
    protected $_options = array();

    public function setOptions($options)
    {
        $this -> _options = $options;
        return $this;
    }

    public function getOptions()
    {
        return $this -> _options;
    }

    public function getOption($name, $default = null)
    {
        return isset($this -> _options[$name]) ? $this -> _options[$name] : null;
    }

    public function isValid($value, $params = null)
    {
        return 1;
    }

}
